#ifndef   GAME_ENGINE_HY
#define   GAME_ENGINE_HY


#include "display.h"
#include "gLib.h"
#include "bitmap.h"
#include "keypad.h"
#include "Animation.h"

class CModel;

class CEngine
{
private:
	HWND m_hMainwnd;
	int win_closed;
	CDisplay _d;
	CBmp    m_bmp;
	CBmp    m_bg;
	CGraphics m_g;
	int x, y;
	CAnimation *m_animX[4];
	CAnimation *m_anim;
	CModel *m_model;
	gVertex3D m_vertexBuff[8];
	int m_face[12][3];

public:
	CKeyPad m_key;

	CEngine();
	~CEngine();
	CDisplay *GetDisplay();
	CGraphics *GetGraphics();
	void Initiate(HWND hMainwnd);
	void Finalize();
	void Run();
};

#endif
